<?php if($gameList->getNbResults() > 0): ?>
  <table border="1">
    <tr>
      <th><?php echo __("date")?></th>
      <?php if (!isset($boardgame)): ?>
        <th><?php echo __("boardgame")?></th>
      <?php endif; ?>
      <th><?php echo __("result")?></th>
    </tr>
    <?php foreach($gameList as $game): ?>
      <tr>
        <td><?php echo $game->getDate();?></td>
        <?php if (!isset($boardgame)): ?>
          <td><?php echo $game->getBoardgame(); ?></td>
        <?php endif; ?>
        <td>
          <table>
          <?php foreach($game->getPlayerGames() as $playerGame): ?>
             <tr>
               <td>
                 <?php include_partial("match_points", array('content' => $playerGame->getPlacing() . ". " . $playerGame->getPlayer()->getUsername(), 'evidenced' => (isset($player) && $player->getUsername() == $playerGame->getPlayer()->getUsername()))); ?>
               </td>
               <td>
                 <?php include_partial("match_points", array('content' => $playerGame->getPts(), 'evidenced' => (isset($player) && $player->getUsername() == $playerGame->getPlayer()->getUsername()))); ?>
               </td>
             </tr>
          <?php endforeach; ?>
          </table>
        </td>
      </tr>
    <?php endforeach; ?>
  </table>
<?php else: ?>
  <?php echo __("no results"); ?>
<?php endif; ?>